#include <cstdio>

int main() {
	int num = 0;
	const int MAX = 90;
	char ans[MAX][MAX];

	while ( scanf("%s", ans[num++]) != EOF );

	for (int i = num-1; i >= 0; i--) {
		printf("%s", ans[i]);
	}

	return 0;
}
